#include "Computer.h"
#include <iostream>

namespace Facade{
    Computer::Computer() {
        this->cpu = Cpu{};
        this->hardDrive = HardDrive{};
        this->memory = Memory{};
    }

    void Computer::start() {
        cpu.freeze();
        cpu.jump(0);
        cpu.execute();
        memory.load(0, 100);
        hardDrive.read(1);
        std::cout << "computer starts" << std::endl;
    }
}
